#ifndef DETECTWORDS_H
#define DETECTWORDS_H

#include <QObject>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork>

class DetectWords : public QObject
{
public:
    DetectWords();
    QString getAccessToken();
    QJsonArray ocrAccurateBasic(QString accessToken, QRect rect);
    QJsonArray ocrAccurate(QString accessToken, QRect rect);
    QJsonObject queryWithJx3Api(QString subject);

private:
    QString client_id;
    QString client_secret;
    QString subject;
    QStringList options;
    QString question;
    QString answer;
    QNetworkAccessManager * manager;
    QPoint startPoint;
    QPoint endPoint;

};

#endif // DETECTWORDS_H
